﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{
    /// <summary>
    /// 订单实体类
    /// </summary>
    public class Order : BaseEntity
    {

        [Column(TypeName = "nvarchar(64)")]
        public string Title { get; set; }

        /// <summary>
        /// 客户姓名
        /// </summary>
        [Column(TypeName = "nvarchar(16)")]
        public string CustomerName { get; set; }

        /// <summary>
        /// 客户手机
        /// </summary>
        [Column(TypeName = "nvarchar(16)")]
        public string CustomerPhone { get; set; }

        /// <summary>
        /// 客户地址
        /// </summary>
        [Column(TypeName = "nvarchar(64)")]
        public string CustomerAddress { get; set; }

        /// <summary>
        /// 房子面积
        /// </summary>
        public double Area { get; set; }

        /// <summary>
        /// 代理人
        /// </summary>
        [Column(TypeName = "nvarchar(16)")]
        public string? AgentName { get; set; }

        /// <summary>
        /// 代理人电话 
        /// </summary>
        [Column(TypeName = "varchar(16)")]
        public string? AgentPhone { get; set; }

        /// <summary>
        /// 开工时间
        /// </summary>
        public DateTime StartTime { get; set; }

        /// <summary>
        /// 竣工时间
        /// </summary>
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 设计师
        /// </summary>
        [Column(TypeName = "varchar(36)")]
        public string? DesignerId { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [Column(TypeName = "varchar(36)")]
        public string CreatorId { get; set; }


        public DateTime CreateTime { get; set; }

        public bool IsDelete { get; set; }

        public DateTime? DeleteTime { get; set; }

    }
}
